﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 消息接收
    /// 版 本：V3.0.0
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// 日 期：2017-12-27 
    /// </summary>
    [Table("BASE_MESSAGERECEIVE")]
    public class MessageReceiveEntity
    {
        /// <summary>
        /// 自然主键
        /// </summary>
        [Key]
        [Column("F_ID")]
        public string Id { get; set; }
        /// <summary>
        /// 消息主键
        /// </summary>
        [Column("F_MESSAGEID")]
        public string MessageId { get; set; }
        /// <summary>
        /// 用户主键
        /// </summary>
        [Column("F_USERID")]
        public string UserId { get; set; }
        /// <summary>
        /// 是否阅读
        /// </summary>
        [Column("F_ISREAD")]
        public int? IsRead { get; set; }
        /// <summary>
        /// 阅读时间
        /// </summary>
        [Column("F_READTIME")]
        public DateTime? ReadTime { get; set; }
        /// <summary>
        /// 阅读次数
        /// </summary>
        [Column("F_READCOUNT")]
        public int? ReadCount { get; set; }
    }
}
